Skip to main content
guest
|
Join
|
Help
|
Sign In
guest
Join
|
Help
|
Sign In
IBCS1-WD
Home
Home
pages
changes
Favorites
20
All Pages
20
RefLink
20
Reference Links
ReferenceResources-LearnPython
Log
20
June 1st 2016 by Tom
June 3rd 2016 by Arthur
June 12th 2016 by Alex
June 15th 2016 by Doris
August 31st 2016 by Enzo Yang
Jan 2 2018 Lesson Log
June 17th 2016 by Michael Qian
June 22nd 2016 by Tom
June 24th 2016 by David Ye
May 17th 2017 by Alex Zhou
May 5th 2017 by Tom Zhou
November 11th by Doris Xue
November 14th 2016 by Margaret Sun
November 17th 2016 by Michael Qian
November 23th 2016 by Alex Zhou
November 4th 2016 by Tom Zhou
October 10th 2016 by Margaret Sun
October 12th 2016 by Matt An
October 24th 2016 by Enzo Yang
October 28th 2016 by David Ye
see more
Add
Add "All Pages"
Done
Project Pages
Doris' project page
Alex's project page
Tom's project page
Charles's project page
Matt's project page
Michael's project page
Enzo's project page
Arthur's project page
David's project page
Margaret's project page
webot
Edit
0
14
…
1
Tags
steam
Notify
RSS
Backlinks
Source
Print
Export (PDF)
基于Python的微信智能聊天机器人
本次课PPT下载
1. 为什么
背景:微信——已成为一个生活方式
背景:智能聊天机器人的商业应用
http://tech.sina.com.cn/roll/2017-11-06/doc-ifynmnae2179433.shtml
2. 是什么
体验:智能交互教学平台 Webot:
https://ibcs1-wd.wikispaces.com
使用:输入tesst
Current functions available:
FUNCTION 1: Calc24
Type in "test calc24 1 2 3 4" to use.
FUNCTION 2: Getfile
Type in "test getfile" to use.
FUNCTION 3: Guessnumber
Type in "test guessnumber" to use.
FUNCTION 4: Removefile
Type in "test removefile" to use.
FUNCTION 5: Rpn
Type in "test rpn 1 2 + 3 *" to use.
FUNCTION 6: Storefile
Type in "test storefile" to use.
FUNCTION 7: Uploadmodule
Type in "test uploadmodule" to use
学生活动:体验使用
3. 怎么做
1) 体验、运行:独立完成 5分钟
运行基于Python的智能聊天机器人:以图灵机器人为交互内核
a) 开源代码运行:
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#_5
b) 实践测试: 运行程序后个人微信号成为智能聊天机器人,相互测试。也可给出个人微信二维码,邀请周围老师参与互动
c)了解图灵机器人API使用框架
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#3_1
4.3部分阅读
2) 解析、学习
a)了解itchat:开源的微信个人号接口 python 微信API
https://itchat.readthedocs.io/zh/latest/#_1
安装
https://itchat.readthedocs.io/zh/latest/#_2
简单入门实例
b)实现微信消息的获取
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#1_1
c)实现微信消息的发送
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#2_1
d)图灵机器人—API
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#3_1
3 )拓展、创新
任务A:实现 图灵机器人API的拓展:不仅回复文本内容,也支持新闻类、列车类、航班类等交互内容,回复中给出相应网页链接,大家可以参考这些资源进行实现。
http://www.tuling123.com/help/h_cent_webapi.jhtml?nav=doc
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#_5
任务B:拓展文本交互,实现对图片、视频消息的响应函数,这里一方面 需要大家定义自己的对图片、视频消息的注册函数,另一方面大家要实现 图片、视频消息的发送
https://itchat.readthedocs.io/zh/latest/#_5
http://itchat.readthedocs.io/zh/latest/api/
任务C,同任务B相似,只是拓展实现对音频和文件类型消息的响应和处理。
https://itchat.readthedocs.io/zh/latest/#_5
http://itchat.readthedocs.io/zh/latest/api/
注意使用:Send_msg,Send_file,Send_image,Send_video,Send,upload_file,
4) 展示、交流
开发的智能聊天机器人给大家现场试用,并进行1分钟的创新点讲解
4. 创新玩
DIY 个人微信聊天机器人
参考资料:
日常的各种信息进行获取与回复
https://itchat.readthedocs.io/zh/latest/#_5
Python itchat API 列表
http://itchat.readthedocs.io/zh/latest/api/
图灵机器人API列表
http://www.tuling123.com/help/h_cent_webapi.jhtml?nav=doc
微信控制器:自动搜歌
群发助手
好友删除检测
http://itchat.readthedocs.io/zh/latest/tutorial/tutorial2/#_4
项目提交
11月29日上课前,请将代码和相关文档提交至自己的project page,并将链接提交如下:
Doris:
Alex:
11.29 ITCHAT
Tom:
https://github.com/hanzhi713/WeChat-CLI-Tool
Charles:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%204/itchat
Matt:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%205/itchat
Michael:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%206/webot
Enzo:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%207/Itchatrobot
Arthur:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%208/11.29+Assignment+-+itchat+tuling+robot+extension
David:
https://ibcs1-wd.wikispaces.com/-/Coursework/Team%209/ITCHAT_INVESTIGATION
Margaret:
基于
Python
的微信智能聊天机器人
)
开源代码运行:
https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#_5
Javascript Required
You need to enable Javascript in your browser to edit pages.
help on how to format text
Turn off "Getting Started"
Home
...
Loading...
基于Python的微信智能聊天机器人
本次课PPT下载
1. 为什么
2. 是什么
学生活动:体验使用
3. 怎么做
1) 体验、运行:独立完成 5分钟运行基于Python的智能聊天机器人:以图灵机器人为交互内核
2) 解析、学习
3 )拓展、创新
- 任务A:实现 图灵机器人API的拓展:不仅回复文本内容,也支持新闻类、列车类、航班类等交互内容,回复中给出相应网页链接,大家可以参考这些资源进行实现。
- http://www.tuling123.com/help/h_cent_webapi.jhtml?nav=doc
- https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#_5
- 任务B:拓展文本交互,实现对图片、视频消息的响应函数,这里一方面 需要大家定义自己的对图片、视频消息的注册函数,另一方面大家要实现 图片、视频消息的发送
- https://itchat.readthedocs.io/zh/latest/#_5
- http://itchat.readthedocs.io/zh/latest/api/
- 任务C,同任务B相似,只是拓展实现对音频和文件类型消息的响应和处理。
- https://itchat.readthedocs.io/zh/latest/#_5
- http://itchat.readthedocs.io/zh/latest/api/
注意使用:Send_msg,Send_file,Send_image,Send_video,Send,upload_file,4) 展示、交流
开发的智能聊天机器人给大家现场试用,并进行1分钟的创新点讲解
4. 创新玩
DIY 个人微信聊天机器人参考资料:
项目提交
11月29日上课前,请将代码和相关文档提交至自己的project page,并将链接提交如下:- Doris:
- Alex:11.29 ITCHAT
- Tom: https://github.com/hanzhi713/WeChat-CLI-Tool
- Charles: https://ibcs1-wd.wikispaces.com/-/Coursework/Team%204/itchat
- Matt: https://ibcs1-wd.wikispaces.com/-/Coursework/Team%205/itchat
- Michael:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%206/webot
- Enzo: https://ibcs1-wd.wikispaces.com/-/Coursework/Team%207/Itchatrobot
- Arthur:https://ibcs1-wd.wikispaces.com/-/Coursework/Team%208/11.29+Assignment+-+itchat+tuling+robot+extension
- David: https://ibcs1-wd.wikispaces.com/-/Coursework/Team%209/ITCHAT_INVESTIGATION
- Margaret:
基于Python的微信智能聊天机器人) 开源代码运行: https://itchat.readthedocs.io/zh/latest/tutorial/tutorial0/#_5